<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>${weixun.name}</title>
<link type="<%=basePath%>image/x-icon" rel="Shortcut Icon"
	href="<%=basePath%>Images/favicon.ico" />
<style type="text/css">
@import "<%=basePath%>CSS/Yiian_Style.css";
</style>
<link type="text/css" rel="stylesheet"
	href="<%=basePath%>CSS/Yiian_Include.css" />
<link type="text/css" rel="stylesheet"
	href="<%=basePath%>CSS/Yiian_MicroNews.css" />
<script type="text/javascript" language="javascript"
	src="<%=basePath%>JS/jquery-1.6.2.min.js"></script>
<script type="text/javascript">

$(function(){

	var params = {};
	params["weixun.id"] = $("#guanbtn").attr("weixunid");
	$("#guanbtn").click(function(){
		
		$.ajax( {
			type : "post",
			url : "<%=basePath%>follower/addFollower.action",
			dataType : "json",
			data : params,
			success : function(_result) {
				if(_result.success){
					$("#guanbtn").removeClass("guanbtn").addClass("ygzbtn").attr("id","ygzbtn");
				}
				
			},
			error : function() {
				alert("网络异常 ！");
			}
		});

	});
});
	
</script>
</head>
<body>
<div class="homeheader header">
<div class="logo"><a href="http://www.wixun.com" title="微讯"><img
	src="Images/Logo.png" /></a></div>
<form action="searches.php" class="" id="" method="post" name="soso">
<ul class="tool">
	<li class="search"><span class="bai">潘小婷</span>&nbsp;&nbsp;&nbsp;|<a
		class="nav" href="Tools.html">应用工具</a>|<a class="nav"
		href="Notice.html">我的私信(<span style="color: #FC0">12</span>)</a>|<a
		class="nav" href="Private.html">账户设置</a>|<a style="padding-right: 0;"
		class="nav" href="index.html">退出登录</a></li>
	<li style="padding-top: 9px; height: 21px;" class="search"><input
		type="text" class="sotxt txt" id="" name="" value="输入关键字搜索微讯" /><input
		type="submit" class="sobtn" id="" name="" value="搜索" onclick="soso();" /></li>
</ul>
</form>
</div>

<div class="homemain">
<div class="homeleft">
<div class="tubiao"><img class="touico icopic"
	src="<%=basePath%>upload/showImage.jsp?path=${weixun.logo}" /></div>
<ul class="wixunname">
	<li class="ming">${weixun.name }</li>
	<li class="zhuye"><a class="homeweb blue"
		href="#">http://www.wixun.com/${weixun.path }</a></li>
	<li class="tongjiinfo zhuye">微讯<span class="blue">${fn:length(messageList)}</span>条&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;微友<span
		class="blue">${fn:length(followerList)}</span>人</li>
	<li class="guanzhubtn"><c:if test="${!followState }">
		<input type="button" class="guanbtn" id="guanbtn" name="" value="" weixunid="${weixun.id }"/>
	</c:if>
	<c:if test="${followState }">
		<input type="button" class="ygzbtn" id="ygzbtn" name="" value="" weixunid="${weixun.id }"/>
	</c:if> <input type="button" class="sixin" id="" name="" value="" />
</ul>
<div style="clear: both; width: auto; height: 20px;"></div>
<div class="biaoqiao"><a class="xuanxiang" id="xuan1" href="#">它的讯息</a><!--<a class="xuanxiang" id="xuan2" href="#">我关注的</a><a class="xuanxiang" id="xuan2" href="#">我行业的</a><a class="xuanxiang" id="xuan2" href="#">最新讯息</a>-->
</div>
<div class="info" id="info1">

<c:forEach var="item" items="${messageList}">
	<div class="xunxi bobao">
	${item.content }<br />
	<span class="blue xiao"><fmt:formatDate value="${item.publishtime }" pattern="MM月dd日     HH:mm" />
		<font class="hui">来自</font>网页</span> <span class="shoucang"><a
		class="pinglun blue" href="#">收藏</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a
		class="pinglun blue" href="#">评论</a></span></div>
</c:forEach>


<div class="page"><span class="fenyishou fenyi">1</span><a
	class="fenyi" href="#">2</a><a class="fenyi" href="#">3</a><a
	class="fenyi" href="#">4</a><a class="fenyi" href="#">5</a><a
	class="fenyi" href="#">6</a>......<a class="fenyi" href="#">30</a><a
	class="fenyi" href="#">下一页</a></div>

</div>
</div>

<div class="manageright homeright">
<ul class="mywixun">
	<li class="menu8 menu"><strong>关于它的资料</strong></li>
	<li class="wixuninfo"><span class="blue">地址：</span>北京市海淀区远大路金源时代购物中心5层东首<br />
	<span class="blue">邮编：</span>878696<br />
	<span class="blue">电话：</span>010-88878696<br />
	<span class="blue">网址：</span>www.ixingmei.com<br />
	<span class="blue">电邮：</span>xingmei@163.com<br />
	<span class="blue">介绍：</span>${weixun.introduction }</li>
	<li class="menu6 menu"><a class="caidan" href="Members.html?id=">它的微讯成员</a><span
		class="red">(${fn:length(followerList)})</span></li>
	<li class="mywixun">
	<ul class="liebiao mywixun">
	
	<c:forEach var="item" items="${followerList}">
      <li class="bu"></li>
      <li class="tuwen"><a href="#" target="_blank"><img
		class="icopic" src="<%=basePath%>upload/showImage.jsp?path=${item.userpic}" /> </a><a
		class="myname" href="Material.html?id=" target="_blank">${item.username }</a></li>
   	</c:forEach>
		
		<li class="more"><a class="gengduo blue" href="Members.html?id=">更多<span
			class="songti">&nbsp;>></span></a></li>
	</ul>
	</li>
</ul>
</div>
<div style="clear: both; height: 0; font-size: 0;"></div>
</div>

<div class="copyright"><a class="links" href="#" target="_blank">帮助信息</a>-<a
	class="links" href="#" target="_blank">联系我们</a>-<a class="links"
	href="#" target="_blank">意见建议</a>-<a class="links" href="#"
	target="_blank">举报</a>-<a class="links" href="#" target="_blank">微讯首页</a><br />
Copyright&nbsp;&copy;&nbsp;2011&nbsp;&nbsp;Wixun.com&nbsp;&nbsp;Inc.&nbsp;&nbsp;All&nbsp;Rights&nbsp;Reserved.&nbsp;&nbsp;&nbsp;&nbsp;蛙扑公司&nbsp;&nbsp;&nbsp;&nbsp;版权所有
</div>

</body>
</html>